<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SystemSharp: Microsoft.Experimental.IO.LongPathDirectory Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SystemSharp
   &#160;<span id="projectnumber">0.3</span>
   </div>
   <div id="projectbrief">A system-level modeling framework for designing real-time embedded systems</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_directory.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_directory-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Microsoft.Experimental.IO.LongPathDirectory Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Provides methods for creating, deleting, moving and enumerating directories and subdirectories with long paths, that is, paths that exceed 259 characters.  
 <a href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_directory.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:af56b42bf2bead0d88faef9f66112cf1e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_directory.html#af56b42bf2bead0d88faef9f66112cf1e">Create</a> (string path)</td></tr>
<tr class="memdesc:af56b42bf2bead0d88faef9f66112cf1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates the specified directory.  <a href="#af56b42bf2bead0d88faef9f66112cf1e">More...</a><br/></td></tr>
<tr class="separator:af56b42bf2bead0d88faef9f66112cf1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aced3ccbdfba0a85bf9d78b2c60d4964d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_directory.html#aced3ccbdfba0a85bf9d78b2c60d4964d">Delete</a> (string path)</td></tr>
<tr class="memdesc:aced3ccbdfba0a85bf9d78b2c60d4964d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deletes the specified empty directory.  <a href="#aced3ccbdfba0a85bf9d78b2c60d4964d">More...</a><br/></td></tr>
<tr class="separator:aced3ccbdfba0a85bf9d78b2c60d4964d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc2a7a27f2d9598e08c8720cc682c592"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_directory.html#adc2a7a27f2d9598e08c8720cc682c592">Exists</a> (string path)</td></tr>
<tr class="memdesc:adc2a7a27f2d9598e08c8720cc682c592"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a value indicating whether the specified path refers to an existing directory.  <a href="#adc2a7a27f2d9598e08c8720cc682c592">More...</a><br/></td></tr>
<tr class="separator:adc2a7a27f2d9598e08c8720cc682c592"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a489181e29f8c4edc36bffbd74cb11bb6"><td class="memItemLeft" align="right" valign="top">static IEnumerable&lt; string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_directory.html#a489181e29f8c4edc36bffbd74cb11bb6">EnumerateDirectories</a> (string path)</td></tr>
<tr class="memdesc:a489181e29f8c4edc36bffbd74cb11bb6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a enumerable containing the directory names of the specified directory.  <a href="#a489181e29f8c4edc36bffbd74cb11bb6">More...</a><br/></td></tr>
<tr class="separator:a489181e29f8c4edc36bffbd74cb11bb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a290f7a1382d89a444358c3f7204e5a2b"><td class="memItemLeft" align="right" valign="top">static IEnumerable&lt; string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_directory.html#a290f7a1382d89a444358c3f7204e5a2b">EnumerateDirectories</a> (string path, string searchPattern)</td></tr>
<tr class="memdesc:a290f7a1382d89a444358c3f7204e5a2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a enumerable containing the directory names of the specified directory that match the specified search pattern.  <a href="#a290f7a1382d89a444358c3f7204e5a2b">More...</a><br/></td></tr>
<tr class="separator:a290f7a1382d89a444358c3f7204e5a2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a438669d17e4219bd26f733d7636e230d"><td class="memItemLeft" align="right" valign="top">static IEnumerable&lt; string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_directory.html#a438669d17e4219bd26f733d7636e230d">EnumerateFiles</a> (string path)</td></tr>
<tr class="memdesc:a438669d17e4219bd26f733d7636e230d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a enumerable containing the file names of the specified directory.  <a href="#a438669d17e4219bd26f733d7636e230d">More...</a><br/></td></tr>
<tr class="separator:a438669d17e4219bd26f733d7636e230d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a243e44f47ef4c7a0abbf2225249f0b04"><td class="memItemLeft" align="right" valign="top">static IEnumerable&lt; string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_directory.html#a243e44f47ef4c7a0abbf2225249f0b04">EnumerateFiles</a> (string path, string searchPattern)</td></tr>
<tr class="memdesc:a243e44f47ef4c7a0abbf2225249f0b04"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a enumerable containing the file names of the specified directory that match the specified search pattern.  <a href="#a243e44f47ef4c7a0abbf2225249f0b04">More...</a><br/></td></tr>
<tr class="separator:a243e44f47ef4c7a0abbf2225249f0b04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3038b1ea6f941a9867b817f85488f2fb"><td class="memItemLeft" align="right" valign="top">static IEnumerable&lt; string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_directory.html#a3038b1ea6f941a9867b817f85488f2fb">EnumerateFileSystemEntries</a> (string path)</td></tr>
<tr class="memdesc:a3038b1ea6f941a9867b817f85488f2fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a enumerable containing the file and directory names of the specified directory.  <a href="#a3038b1ea6f941a9867b817f85488f2fb">More...</a><br/></td></tr>
<tr class="separator:a3038b1ea6f941a9867b817f85488f2fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a371dc604f607e1992f39998c30611dd6"><td class="memItemLeft" align="right" valign="top">static IEnumerable&lt; string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_directory.html#a371dc604f607e1992f39998c30611dd6">EnumerateFileSystemEntries</a> (string path, string searchPattern)</td></tr>
<tr class="memdesc:a371dc604f607e1992f39998c30611dd6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a enumerable containing the file and directory names of the specified directory that match the specified search pattern.  <a href="#a371dc604f607e1992f39998c30611dd6">More...</a><br/></td></tr>
<tr class="separator:a371dc604f607e1992f39998c30611dd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Provides methods for creating, deleting, moving and enumerating directories and subdirectories with long paths, that is, paths that exceed 259 characters. </p>

<p>Definition at line <a class="el" href="_long_path_directory_8cs_source.html#l00015">15</a> of file <a class="el" href="_long_path_directory_8cs_source.html">LongPathDirectory.cs</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af56b42bf2bead0d88faef9f66112cf1e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Microsoft.Experimental.IO.LongPathDirectory.Create </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates the specified directory. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>A String containing the path of the directory to create. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td><em>path</em>  is . </td></tr>
    <tr><td class="paramname">ArgumentException</td><td><em>path</em>  is an empty string (""), contains only white space, or contains one or more invalid characters as defined in Path.GetInvalidPathChars(). </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  contains one or more components that exceed the drive-defined maximum length. For example, on Windows-based platforms, components must not exceed 255 characters. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">PathTooLongException</td><td><em>path</em>  exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 32,000 characters. </td></tr>
    <tr><td class="paramname">DirectoryNotFoundException</td><td><em>path</em>  contains one or more directories that could not be found. </td></tr>
    <tr><td class="paramname">UnauthorizedAccessException</td><td>The caller does not have the required access permissions. </td></tr>
    <tr><td class="paramname">IOException</td><td><em>path</em>  is a file. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  specifies a device that is not ready. </p>
<p>Note: Unlike Directory.CreateDirectory(System.String), this method only creates the last directory in <em>path</em> . </p>

<p>Definition at line <a class="el" href="_long_path_directory_8cs_source.html#l00060">60</a> of file <a class="el" href="_long_path_directory_8cs_source.html">LongPathDirectory.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aced3ccbdfba0a85bf9d78b2c60d4964d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Microsoft.Experimental.IO.LongPathDirectory.Delete </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Deletes the specified empty directory. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>A String containing the path of the directory to delete. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td><em>path</em>  is . </td></tr>
    <tr><td class="paramname">ArgumentException</td><td><em>path</em>  is an empty string (""), contains only white space, or contains one or more invalid characters as defined in Path.GetInvalidPathChars(). </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  contains one or more components that exceed the drive-defined maximum length. For example, on Windows-based platforms, components must not exceed 255 characters. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">PathTooLongException</td><td><em>path</em>  exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 32,000 characters. </td></tr>
    <tr><td class="paramname">DirectoryNotFoundException</td><td><em>path</em>  could not be found. </td></tr>
    <tr><td class="paramname">UnauthorizedAccessException</td><td>The caller does not have the required access permissions. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  refers to a directory that is read-only. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">IOException</td><td><em>path</em>  is a file. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  refers to a directory that is not empty. </p>
<p>-or- </p>
<p><em>path</em>  refers to a directory that is in use. </p>
<p>-or- </p>
<p><em>path</em>  specifies a device that is not ready. </p>

<p>Definition at line <a class="el" href="_long_path_directory_8cs_source.html#l00124">124</a> of file <a class="el" href="_long_path_directory_8cs_source.html">LongPathDirectory.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a489181e29f8c4edc36bffbd74cb11bb6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static IEnumerable&lt;string&gt; Microsoft.Experimental.IO.LongPathDirectory.EnumerateDirectories </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a enumerable containing the directory names of the specified directory. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>A String containing the path of the directory to search. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A IEnumerable{T} containing the directory names within <em>path</em> . </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td><em>path</em>  is . </td></tr>
    <tr><td class="paramname">ArgumentException</td><td><em>path</em>  is an empty string (""), contains only white space, or contains one or more invalid characters as defined in Path.GetInvalidPathChars(). </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  contains one or more components that exceed the drive-defined maximum length. For example, on Windows-based platforms, components must not exceed 255 characters. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">PathTooLongException</td><td><em>path</em>  exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 32,000 characters. </td></tr>
    <tr><td class="paramname">DirectoryNotFoundException</td><td><em>path</em>  contains one or more directories that could not be found. </td></tr>
    <tr><td class="paramname">UnauthorizedAccessException</td><td>The caller does not have the required access permissions. </td></tr>
    <tr><td class="paramname">IOException</td><td><em>path</em>  is a file. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  specifies a device that is not ready. </p>

<p>Definition at line <a class="el" href="_long_path_directory_8cs_source.html#l00203">203</a> of file <a class="el" href="_long_path_directory_8cs_source.html">LongPathDirectory.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a290f7a1382d89a444358c3f7204e5a2b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static IEnumerable&lt;string&gt; Microsoft.Experimental.IO.LongPathDirectory.EnumerateDirectories </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>searchPattern</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a enumerable containing the directory names of the specified directory that match the specified search pattern. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>A String containing the path of the directory to search. </td></tr>
    <tr><td class="paramname">searchPattern</td><td>A String containing search pattern to match against the names of the directories in <em>path</em> , otherwise,  or an empty string ("") to use the default search pattern, "*". </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A IEnumerable{T} containing the directory names within <em>path</em>  that match <em>searchPattern</em> . </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td><em>path</em>  is . </td></tr>
    <tr><td class="paramname">ArgumentException</td><td><em>path</em>  is an empty string (""), contains only white space, or contains one or more invalid characters as defined in Path.GetInvalidPathChars(). </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  contains one or more components that exceed the drive-defined maximum length. For example, on Windows-based platforms, components must not exceed 255 characters. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">PathTooLongException</td><td><em>path</em>  exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 32,000 characters. </td></tr>
    <tr><td class="paramname">DirectoryNotFoundException</td><td><em>path</em>  contains one or more directories that could not be found. </td></tr>
    <tr><td class="paramname">UnauthorizedAccessException</td><td>The caller does not have the required access permissions. </td></tr>
    <tr><td class="paramname">IOException</td><td><em>path</em>  is a file. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  specifies a device that is not ready. </p>

<p>Definition at line <a class="el" href="_long_path_directory_8cs_source.html#l00257">257</a> of file <a class="el" href="_long_path_directory_8cs_source.html">LongPathDirectory.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a438669d17e4219bd26f733d7636e230d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static IEnumerable&lt;string&gt; Microsoft.Experimental.IO.LongPathDirectory.EnumerateFiles </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a enumerable containing the file names of the specified directory. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>A String containing the path of the directory to search. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A IEnumerable{T} containing the file names within <em>path</em> . </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td><em>path</em>  is . </td></tr>
    <tr><td class="paramname">ArgumentException</td><td><em>path</em>  is an empty string (""), contains only white space, or contains one or more invalid characters as defined in Path.GetInvalidPathChars(). </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  contains one or more components that exceed the drive-defined maximum length. For example, on Windows-based platforms, components must not exceed 255 characters. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">PathTooLongException</td><td><em>path</em>  exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 32,000 characters. </td></tr>
    <tr><td class="paramname">DirectoryNotFoundException</td><td><em>path</em>  contains one or more directories that could not be found. </td></tr>
    <tr><td class="paramname">UnauthorizedAccessException</td><td>The caller does not have the required access permissions. </td></tr>
    <tr><td class="paramname">IOException</td><td><em>path</em>  is a file. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  specifies a device that is not ready. </p>

<p>Definition at line <a class="el" href="_long_path_directory_8cs_source.html#l00304">304</a> of file <a class="el" href="_long_path_directory_8cs_source.html">LongPathDirectory.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a243e44f47ef4c7a0abbf2225249f0b04"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static IEnumerable&lt;string&gt; Microsoft.Experimental.IO.LongPathDirectory.EnumerateFiles </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>searchPattern</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a enumerable containing the file names of the specified directory that match the specified search pattern. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>A String containing the path of the directory to search. </td></tr>
    <tr><td class="paramname">searchPattern</td><td>A String containing search pattern to match against the names of the files in <em>path</em> , otherwise,  or an empty string ("") to use the default search pattern, "*". </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A IEnumerable{T} containing the file names within <em>path</em>  that match <em>searchPattern</em> . </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td><em>path</em>  is . </td></tr>
    <tr><td class="paramname">ArgumentException</td><td><em>path</em>  is an empty string (""), contains only white space, or contains one or more invalid characters as defined in Path.GetInvalidPathChars(). </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  contains one or more components that exceed the drive-defined maximum length. For example, on Windows-based platforms, components must not exceed 255 characters. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">PathTooLongException</td><td><em>path</em>  exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 32,000 characters. </td></tr>
    <tr><td class="paramname">DirectoryNotFoundException</td><td><em>path</em>  contains one or more directories that could not be found. </td></tr>
    <tr><td class="paramname">UnauthorizedAccessException</td><td>The caller does not have the required access permissions. </td></tr>
    <tr><td class="paramname">IOException</td><td><em>path</em>  is a file. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  specifies a device that is not ready. </p>

<p>Definition at line <a class="el" href="_long_path_directory_8cs_source.html#l00358">358</a> of file <a class="el" href="_long_path_directory_8cs_source.html">LongPathDirectory.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a3038b1ea6f941a9867b817f85488f2fb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static IEnumerable&lt;string&gt; Microsoft.Experimental.IO.LongPathDirectory.EnumerateFileSystemEntries </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a enumerable containing the file and directory names of the specified directory. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>A String containing the path of the directory to search. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A IEnumerable{T} containing the file and directory names within <em>path</em> . </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td><em>path</em>  is . </td></tr>
    <tr><td class="paramname">ArgumentException</td><td><em>path</em>  is an empty string (""), contains only white space, or contains one or more invalid characters as defined in Path.GetInvalidPathChars(). </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  contains one or more components that exceed the drive-defined maximum length. For example, on Windows-based platforms, components must not exceed 255 characters. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">PathTooLongException</td><td><em>path</em>  exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 32,000 characters. </td></tr>
    <tr><td class="paramname">DirectoryNotFoundException</td><td><em>path</em>  contains one or more directories that could not be found. </td></tr>
    <tr><td class="paramname">UnauthorizedAccessException</td><td>The caller does not have the required access permissions. </td></tr>
    <tr><td class="paramname">IOException</td><td><em>path</em>  is a file. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  specifies a device that is not ready. </p>

<p>Definition at line <a class="el" href="_long_path_directory_8cs_source.html#l00406">406</a> of file <a class="el" href="_long_path_directory_8cs_source.html">LongPathDirectory.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a371dc604f607e1992f39998c30611dd6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static IEnumerable&lt;string&gt; Microsoft.Experimental.IO.LongPathDirectory.EnumerateFileSystemEntries </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>searchPattern</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a enumerable containing the file and directory names of the specified directory that match the specified search pattern. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>A String containing the path of the directory to search. </td></tr>
    <tr><td class="paramname">searchPattern</td><td>A String containing search pattern to match against the names of the files and directories in <em>path</em> , otherwise,  or an empty string ("") to use the default search pattern, "*". </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A IEnumerable{T} containing the file and directory names within <em>path</em> that match <em>searchPattern</em> . </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td><em>path</em>  is . </td></tr>
    <tr><td class="paramname">ArgumentException</td><td><em>path</em>  is an empty string (""), contains only white space, or contains one or more invalid characters as defined in Path.GetInvalidPathChars(). </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  contains one or more components that exceed the drive-defined maximum length. For example, on Windows-based platforms, components must not exceed 255 characters. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">PathTooLongException</td><td><em>path</em>  exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 32,000 characters. </td></tr>
    <tr><td class="paramname">DirectoryNotFoundException</td><td><em>path</em>  contains one or more directories that could not be found. </td></tr>
    <tr><td class="paramname">UnauthorizedAccessException</td><td>The caller does not have the required access permissions. </td></tr>
    <tr><td class="paramname">IOException</td><td><em>path</em>  is a file. </td></tr>
  </table>
  </dd>
</dl>
<p>-or- </p>
<p><em>path</em>  specifies a device that is not ready. </p>

<p>Definition at line <a class="el" href="_long_path_directory_8cs_source.html#l00460">460</a> of file <a class="el" href="_long_path_directory_8cs_source.html">LongPathDirectory.cs</a>.</p>

</div>
</div>
<a class="anchor" id="adc2a7a27f2d9598e08c8720cc682c592"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Microsoft.Experimental.IO.LongPathDirectory.Exists </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a value indicating whether the specified path refers to an existing directory. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>A String containing the path to check. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>if <em>path</em>  refers to an existing directory; otherwise, . </dd></dl>
<p>Note that this method will return false if any error occurs while trying to determine if the specified directory exists. This includes situations that would normally result in thrown exceptions including (but not limited to); passing in a directory name with invalid or too many characters, an I/O error such as a failing or missing disk, or if the caller does not have Windows or Code Access Security (CAS) permissions to to read the directory. </p>

<p>Definition at line <a class="el" href="_long_path_directory_8cs_source.html#l00150">150</a> of file <a class="el" href="_long_path_directory_8cs_source.html">LongPathDirectory.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_long_path_directory_8cs_source.html">LongPathDirectory.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_microsoft.html">Microsoft</a></li><li class="navelem"><a class="el" href="namespace_microsoft_1_1_experimental.html">Experimental</a></li><li class="navelem"><a class="el" href="namespace_microsoft_1_1_experimental_1_1_i_o.html">IO</a></li><li class="navelem"><a class="el" href="class_microsoft_1_1_experimental_1_1_i_o_1_1_long_path_directory.html">LongPathDirectory</a></li>
    <li class="footer">Generated on Thu Dec 26 2013 14:21:49 for SystemSharp by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
